package com.erp.erp_servers.Inquiry.imp;

import com.erp.erp_dao.Inquiry.IInquiryFileDAO;
import com.erp.erp_entitys.Inquiry.InquiryFileEntity;
import com.erp.erp_servers.Inquiry.IInquiryFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ImpInquiryFileService implements IInquiryFileService {
    @Autowired
    private IInquiryFileDAO inquiryFileDAO;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return inquiryFileDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(InquiryFileEntity record) {
        return inquiryFileDAO.insert(record);
    }

    @Override
    public int insertSelective(InquiryFileEntity record) {
        return inquiryFileDAO.insertSelective(record);
    }

    @Override
    public InquiryFileEntity selectByPrimaryKey(Integer id) {
        return inquiryFileDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(InquiryFileEntity record) {
        return inquiryFileDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(InquiryFileEntity record) {
        return inquiryFileDAO.updateByPrimaryKey(record);
    }

    @Override
    public List<InquiryFileEntity> selectFileByInId(Integer inId) {
        return inquiryFileDAO.selectFileByInId(inId);
    }
}
